import request from "@/utils/request";

// 查询月报模版配置列表
export function listBizMonthModel(query) {
  return request({
    url: "/biz/bizMonthModel/list",
    method: "get",
    params: query,
  });
}

// 查询月报模版配置详细
export function getBizMonthModel(id) {
  return request({
    url: "/biz/bizMonthModel/" + id,
    method: "get",
  });
}

// 新增月报模版配置
export function addBizMonthModel(data) {
  return request({
    url: "/biz/bizMonthModel",
    method: "post",
    data: data,
  });
}

// 修改月报模版配置
export function updateBizMonthModel(data) {
  return request({
    url: "/biz/bizMonthModel",
    method: "put",
    data: data,
  });
}

// 删除月报模版配置
export function delBizMonthModel(id) {
  return request({
    url: "/biz/bizMonthModel/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizMonthModel/findMaxSort",
    method: "get",
  });
}
// 导出月报模版配置
export function exportBizMonthModel(query) {
  return request({
    url: "/biz/bizMonthModel/export",
    method: "get",
    params: query,
  });
}
